<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <script src="vue.min.js"></script>
    <script src="vue-resource.js"></script>

</head>
<body>
<div id="app">
    <div v-for="i in arr">
        {{i.summary}}
        {{i.title}}
    </div>
</div>


</body>
<script>
   
    new Vue({
        el:"#app",
        data(){
            return{
                arr:[]
            }
        },
        beforeCreate(){

            this.$http.jsonp("https://api.douban.com/v2/book/1220562").then(function (res) {
              console.log(res.data);
              this.arr=res
                },function () {
                console.log("666")

            }  )
        }
    })
</script>
</html>